package com.sp.scmdb.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.sp.scmdb.common.DomainObject;

@Entity
@Table(name = "OBJ_MAP")
public class Map extends DomainObject {

	@Column(name = "mapName", nullable = false)
	private String mapName;
	@Column(name = "mapAddr", nullable = false)
	private byte[] mapAddr;
	@Column(name = "mapWidth", nullable = false)
	private int mapWidth;
	@Column(name = "mapHeight", nullable = false)
	private int mapHeight;
	@Column(name = "isUsed", nullable = false)
	private int isUsed;
	
	public String getMapName() {
		return mapName;
	}
	public void setMapName(String mapName) {
		this.mapName = mapName;
	}
	public byte[] getMapAddr() {
		return mapAddr;
	}
	public void setMapAddr(byte[] mapAddr) {
		this.mapAddr = mapAddr;
	}
	public int getMapWidth() {
		return mapWidth;
	}
	public void setMapWidth(int mapWidth) {
		this.mapWidth = mapWidth;
	}
	public int getMapHeight() {
		return mapHeight;
	}
	public void setMapHeight(int mapHeight) {
		this.mapHeight = mapHeight;
	}
	public int getIsUsed() {
		return isUsed;
	}
	public void setIsUsed(int isUsed) {
		this.isUsed = isUsed;
	}
}
